<template>
  <div>
    a页面
    <router-link to="/aa">跳转到aa页面</router-link>
    {{ id }},{{ name }}
    <router-view></router-view>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      id: "",
      name: "",
    };
  },
  created() {
    console.log(this);
    console.log(this.$route.params.id);
    console.log(this.$route.params.name);
    this.id = this.$route.params.id;
   this.name = this.$route.params.name;
  },
};
</script>
  
  
<style>
</style>
  